package com.sj.purchase.modules.cost.views.price;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * 移动成本价VO
 * Created by Alin on 2017/11/17
 **/
public class CostPriceVo {
    @Excel(name = "订单编号", width = 35)
    private String orderNo;

    @Excel(name = "订单类型", width = 35)
    private String orderType;

    @Excel(name = "sku", width = 35)
    private String skuNo;//sku编码

    @Excel(name = "创建时间", width = 35)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date createDate;//创建时间

    @Excel(name = "更改前平均价", width = 35)
    private Double lastAvgCostPrice;//计算移动平均价之前的平均价

    @Excel(name = "更改前库存", width = 35)
    private Long lastInventoryQty;//计算移动平均价之前的库存

    @Excel(name = "更改后平均价", width = 35)
    private Double avgCostPrice;//计算移动平均价之后的平均成本价

    @Excel(name = "更改后库存", width = 35)
    private Long inventoryQty;//计算移动平均价之后的數量


    public CostPriceVo() {
    }

    public CostPriceVo(String orderNo, String orderType, String skuNo, Date createDate, Double lastAvgCostPrice, Long lastInventoryQty, Double avgCostPrice, Long inventoryQty) {
        this.orderNo = orderNo;
        this.orderType = orderType;
        this.skuNo = skuNo;
        this.createDate = createDate;
        this.lastAvgCostPrice = lastAvgCostPrice;
        this.lastInventoryQty = lastInventoryQty;
        this.avgCostPrice = avgCostPrice;
        this.inventoryQty = inventoryQty;
    }

    public CostPriceVo(String skuNo, Date createDate, Double avgCostPrice, Long inventoryQty) {
        this.skuNo = skuNo;
        this.createDate = createDate;
        this.avgCostPrice = avgCostPrice;
        this.inventoryQty = inventoryQty;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public CostPriceVo setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public String getOrderType() {
        return orderType;
    }

    public CostPriceVo setOrderType(String orderType) {
        this.orderType = orderType;
        return this;
    }

    public String getSkuNo() {
        return skuNo;
    }

    public CostPriceVo setSkuNo(String skuNo) {
        this.skuNo = skuNo;
        return this;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public CostPriceVo setCreateDate(Date createDate) {
        this.createDate = createDate;
        return this;
    }

    public Double getLastAvgCostPrice() {
        return lastAvgCostPrice;
    }

    public CostPriceVo setLastAvgCostPrice(Double lastAvgCostPrice) {
        this.lastAvgCostPrice = lastAvgCostPrice;
        return this;
    }

    public Long getLastInventoryQty() {
        return lastInventoryQty;
    }

    public CostPriceVo setLastInventoryQty(Long lastInventoryQty) {
        this.lastInventoryQty = lastInventoryQty;
        return this;
    }

    public Double getAvgCostPrice() {
        return avgCostPrice;
    }

    public CostPriceVo setAvgCostPrice(Double avgCostPrice) {
        this.avgCostPrice = avgCostPrice;
        return this;
    }

    public Long getInventoryQty() {
        return inventoryQty;
    }

    public CostPriceVo setInventoryQty(Long inventoryQty) {
        this.inventoryQty = inventoryQty;
        return this;
    }
}
